package net.xiangcaowuyu.shiro.service.impl;

import net.xiangcaowuyu.shiro.entity.ShiroUser;
import net.xiangcaowuyu.shiro.service.ShiroRoleService;
import net.xiangcaowuyu.shiro.service.ShiroService;
import net.xiangcaowuyu.shiro.service.ShiroUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author laughing
 * @date 2020/10/11
 * @site https://www.lisen.org
 */
@Service
public class ShiroServiceImpl implements ShiroService {

    @Resource
    ShiroUserService shiroUserService;

    /**
     * 根据用户编号获取
     *
     * @param userCode 用户编号
     * @return 用户
     */
    @Override
    public ShiroUser findUserByCode(String userCode) {
        return shiroUserService.findUserByUserCode(userCode);
    }
}
